<?xml version="1.0"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html><head><title>SASAPI</title><script src="../../../quicknav.js" type="text/javascript"></script><script><!--
document.quicknavBasePath="../../../index-files";
//--></script><link href="../../../style.css" title="JavaDoc" rel="stylesheet" type="text/css"/><link href="../../../unnatural.css" title="Unnatural" rel="alternate stylesheet" type="text/css"/><link href="../../../overview-summary.html" title="Overview" rel="top"/><meta name="generator" content="http://www.badgers-in-foil.co.uk/projects/as2api/"/></head><body><pre><span class="lineno" id="1">     1  </span><span class="comment doc">/**
<span class="lineno" id="2">     2  </span> * properties.FilterShortcuts
<span class="lineno" id="3">     3  </span> * Special properties for the Tweener class to handle MovieClip filters
<span class="lineno" id="4">     4  </span> * The function names are strange/inverted because it makes for easier debugging (alphabetic order). They're only for internal use (on this class) anyways.
<span class="lineno" id="5">     5  </span> *
<span class="lineno" id="6">     6  </span> * @author		Zeh Fernando, Nate Chatellier, Arthur Debert
<span class="lineno" id="7">     7  </span> * @version		1.0.0
<span class="lineno" id="8">     8  </span> */</span>
<span class="lineno" id="9">     9  </span>
<span class="lineno" id="10">    10  </span><span class="key">import</span> flash.display.BitmapData;
<span class="lineno" id="11">    11  </span><span class="key">import</span> flash.filters.BevelFilter;
<span class="lineno" id="12">    12  </span><span class="key">import</span> flash.filters.BitmapFilter;
<span class="lineno" id="13">    13  </span><span class="key">import</span> flash.filters.BlurFilter;
<span class="lineno" id="14">    14  </span><span class="key">import</span> flash.filters.ColorMatrixFilter;
<span class="lineno" id="15">    15  </span><span class="key">import</span> flash.filters.ConvolutionFilter;
<span class="lineno" id="16">    16  </span><span class="key">import</span> flash.filters.DisplacementMapFilter;
<span class="lineno" id="17">    17  </span><span class="key">import</span> flash.filters.DropShadowFilter;
<span class="lineno" id="18">    18  </span><span class="key">import</span> flash.filters.GlowFilter;
<span class="lineno" id="19">    19  </span><span class="key">import</span> flash.filters.GradientBevelFilter;
<span class="lineno" id="20">    20  </span><span class="key">import</span> flash.filters.GradientGlowFilter;
<span class="lineno" id="21">    21  </span><span class="key">import</span> flash.geom.Point;
<span class="lineno" id="22">    22  </span>
<span class="lineno" id="23">    23  </span><span class="key">import</span> caurina.transitions.Tweener;
<span class="lineno" id="24">    24  </span><span class="key">import</span> caurina.transitions.AuxFunctions;
<span class="lineno" id="25">    25  </span>
<span class="lineno" id="26">    26  </span><span class="key">class</span> caurina.transitions.properties.FilterShortcuts {
<span class="lineno" id="27">    27  </span>
<span class="lineno" id="28">    28  </span>	<span class="comment doc">/**
<span class="lineno" id="29">    29  </span>	 * There's no constructor.
<span class="lineno" id="30">    30  </span>	 */</span>
<span class="lineno" id="31">    31  </span>	<span class="key">public</span> <span class="key">function</span> FilterShortcuts () {
<span class="lineno" id="32">    32  </span>		trace (<span class="str_const">"This is an static class and should not be instantiated."</span>)
<span class="lineno" id="33">    33  </span>	}
<span class="lineno" id="34">    34  </span>
<span class="lineno" id="35">    35  </span>	<span class="comment doc">/**
<span class="lineno" id="36">    36  </span>	 * Registers all the special properties to the Tweener class, so the Tweener knows what to do with them.
<span class="lineno" id="37">    37  </span>	 */</span>
<span class="lineno" id="38">    38  </span>	<span class="key">public</span> <span class="key">static</span> <span class="key">function</span> init():Void {
<span class="lineno" id="39">    39  </span>
<span class="lineno" id="40">    40  </span>		<span class="comment">// Filter tweening splitter properties</span>
<span class="lineno" id="41">    41  </span>		Tweener.registerSpecialPropertySplitter(<span class="str_const">"_filter"</span>, _filter_splitter);
<span class="lineno" id="42">    42  </span>
<span class="lineno" id="43">    43  </span>		<span class="comment">// Shortcuts - BevelFilter</span>
<span class="lineno" id="44">    44  </span>		<span class="comment">// http://livedocs.adobe.com/flex/2/langref/flash/filters/BevelFilter.html</span>
<span class="lineno" id="45">    45  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Bevel_angle"</span>,				_filter_property_get,	_filter_property_set,	[BevelFilter, <span class="str_const">"angle"</span>]);
<span class="lineno" id="46">    46  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Bevel_blurX"</span>,				_filter_property_get,	_filter_property_set,	[BevelFilter, <span class="str_const">"blurX"</span>]);
<span class="lineno" id="47">    47  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Bevel_blurY"</span>,				_filter_property_get,	_filter_property_set,	[BevelFilter, <span class="str_const">"blurY"</span>]);
<span class="lineno" id="48">    48  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Bevel_distance"</span>,			_filter_property_get,	_filter_property_set,	[BevelFilter, <span class="str_const">"distance"</span>]);
<span class="lineno" id="49">    49  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Bevel_highlightAlpha"</span>,	_filter_property_get,	_filter_property_set,	[BevelFilter, <span class="str_const">"highlightAlpha"</span>]);
<span class="lineno" id="50">    50  </span>		Tweener.registerSpecialPropertySplitter(<span class="str_const">"_Bevel_highlightColor"</span>,		_generic_color_splitter, [<span class="str_const">"_Bevel_highlightColor_r"</span>, <span class="str_const">"_Bevel_highlightColor_g"</span>, <span class="str_const">"_Bevel_highlightColor_b"</span>]);
<span class="lineno" id="51">    51  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Bevel_highlightColor_r"</span>,	_filter_property_get,	_filter_property_set,	[BevelFilter, <span class="str_const">"highlightColor"</span>, <span class="str_const">"color"</span>, <span class="str_const">"r"</span>]);
<span class="lineno" id="52">    52  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Bevel_highlightColor_g"</span>,	_filter_property_get,	_filter_property_set,	[BevelFilter, <span class="str_const">"highlightColor"</span>, <span class="str_const">"color"</span>, <span class="str_const">"g"</span>]);
<span class="lineno" id="53">    53  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Bevel_highlightColor_b"</span>,	_filter_property_get,	_filter_property_set,	[BevelFilter, <span class="str_const">"highlightColor"</span>, <span class="str_const">"color"</span>, <span class="str_const">"b"</span>]);
<span class="lineno" id="54">    54  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Bevel_knockout"</span>,			_filter_property_get,	_filter_property_set,	[BevelFilter, <span class="str_const">"knockout"</span>]);
<span class="lineno" id="55">    55  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Bevel_quality"</span>,			_filter_property_get,	_filter_property_set,	[BevelFilter, <span class="str_const">"quality"</span>]);
<span class="lineno" id="56">    56  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Bevel_shadowAlpha"</span>,		_filter_property_get,	_filter_property_set,	[BevelFilter, <span class="str_const">"shadowAlpha"</span>]);
<span class="lineno" id="57">    57  </span>		Tweener.registerSpecialPropertySplitter(<span class="str_const">"_Bevel_shadowColor"</span>,		_generic_color_splitter, [<span class="str_const">"_Bevel_shadowColor_r"</span>, <span class="str_const">"_Bevel_shadowColor_g"</span>, <span class="str_const">"_Bevel_shadowColor_b"</span>]);
<span class="lineno" id="58">    58  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Bevel_shadowColor_r"</span>,		_filter_property_get,	_filter_property_set,	[BevelFilter, <span class="str_const">"shadowColor"</span>, <span class="str_const">"color"</span>, <span class="str_const">"r"</span>]);
<span class="lineno" id="59">    59  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Bevel_shadowColor_g"</span>,		_filter_property_get,	_filter_property_set,	[BevelFilter, <span class="str_const">"shadowColor"</span>, <span class="str_const">"color"</span>, <span class="str_const">"g"</span>]);
<span class="lineno" id="60">    60  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Bevel_shadowColor_b"</span>,		_filter_property_get,	_filter_property_set,	[BevelFilter, <span class="str_const">"shadowColor"</span>, <span class="str_const">"color"</span>, <span class="str_const">"b"</span>]);
<span class="lineno" id="61">    61  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Bevel_strength"</span>,			_filter_property_get,	_filter_property_set,	[BevelFilter, <span class="str_const">"strength"</span>]);
<span class="lineno" id="62">    62  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Bevel_type"</span>,				_filter_property_get,	_filter_property_set,	[BevelFilter, <span class="str_const">"type"</span>]);
<span class="lineno" id="63">    63  </span>
<span class="lineno" id="64">    64  </span>		<span class="comment">// Shortcuts - BlurFilter</span>
<span class="lineno" id="65">    65  </span>		<span class="comment">// http://livedocs.adobe.com/flex/2/langref/flash/filters/BlurFilter.html</span>
<span class="lineno" id="66">    66  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Blur_blurX"</span>,				_filter_property_get,	_filter_property_set, [BlurFilter, <span class="str_const">"blurX"</span>]);
<span class="lineno" id="67">    67  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Blur_blurY"</span>,				_filter_property_get,	_filter_property_set, [BlurFilter, <span class="str_const">"blurY"</span>]);
<span class="lineno" id="68">    68  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Blur_quality"</span>,			_filter_property_get,	_filter_property_set, [BlurFilter, <span class="str_const">"quality"</span>]);
<span class="lineno" id="69">    69  </span>
<span class="lineno" id="70">    70  </span>		<span class="comment">// Shortcuts - ColorMatrixFilter</span>
<span class="lineno" id="71">    71  </span>		<span class="comment">// http://livedocs.adobe.com/flex/2/langref/flash/filters/ColorMatrixFilter.html</span>
<span class="lineno" id="72">    72  </span>		Tweener.registerSpecialPropertySplitter(<span class="str_const">"_ColorMatrix_matrix"</span>,	_generic_matrix_splitter, [[<span class="num_const">1</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">1</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">1</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">1</span>, <span class="num_const">0</span>],
<span class="lineno" id="73">    73  </span>																									[<span class="str_const">"_ColorMatrix_matrix_rr"</span>, <span class="str_const">"_ColorMatrix_matrix_rg"</span>, <span class="str_const">"_ColorMatrix_matrix_rb"</span>, <span class="str_const">"_ColorMatrix_matrix_ra"</span>, <span class="str_const">"_ColorMatrix_matrix_ro"</span>,
<span class="lineno" id="74">    74  </span>																									<span class="str_const">"_ColorMatrix_matrix_gr"</span>, <span class="str_const">"_ColorMatrix_matrix_gg"</span>, <span class="str_const">"_ColorMatrix_matrix_gb"</span>, <span class="str_const">"_ColorMatrix_matrix_ga"</span>, <span class="str_const">"_ColorMatrix_matrix_go"</span>,
<span class="lineno" id="75">    75  </span>																									<span class="str_const">"_ColorMatrix_matrix_br"</span>, <span class="str_const">"_ColorMatrix_matrix_bg"</span>, <span class="str_const">"_ColorMatrix_matrix_bb"</span>, <span class="str_const">"_ColorMatrix_matrix_ba"</span>, <span class="str_const">"_ColorMatrix_matrix_bo"</span>,
<span class="lineno" id="76">    76  </span>																									<span class="str_const">"_ColorMatrix_matrix_ar"</span>, <span class="str_const">"_ColorMatrix_matrix_ag"</span>, <span class="str_const">"_ColorMatrix_matrix_ab"</span>, <span class="str_const">"_ColorMatrix_matrix_aa"</span>, <span class="str_const">"_ColorMatrix_matrix_ao"</span>]]);
<span class="lineno" id="77">    77  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_ColorMatrix_matrix_rr"</span>,	_filter_property_get,	_filter_property_set, [ColorMatrixFilter, <span class="str_const">"matrix"</span>, <span class="str_const">"matrix"</span>, <span class="num_const">0</span>]);
<span class="lineno" id="78">    78  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_ColorMatrix_matrix_rg"</span>,	_filter_property_get,	_filter_property_set, [ColorMatrixFilter, <span class="str_const">"matrix"</span>, <span class="str_const">"matrix"</span>, <span class="num_const">1</span>]);
<span class="lineno" id="79">    79  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_ColorMatrix_matrix_rb"</span>,	_filter_property_get,	_filter_property_set, [ColorMatrixFilter, <span class="str_const">"matrix"</span>, <span class="str_const">"matrix"</span>, <span class="num_const">2</span>]);
<span class="lineno" id="80">    80  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_ColorMatrix_matrix_ra"</span>,	_filter_property_get,	_filter_property_set, [ColorMatrixFilter, <span class="str_const">"matrix"</span>, <span class="str_const">"matrix"</span>, <span class="num_const">3</span>]);
<span class="lineno" id="81">    81  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_ColorMatrix_matrix_ro"</span>,	_filter_property_get,	_filter_property_set, [ColorMatrixFilter, <span class="str_const">"matrix"</span>, <span class="str_const">"matrix"</span>, <span class="num_const">4</span>]);
<span class="lineno" id="82">    82  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_ColorMatrix_matrix_gr"</span>,	_filter_property_get,	_filter_property_set, [ColorMatrixFilter, <span class="str_const">"matrix"</span>, <span class="str_const">"matrix"</span>, <span class="num_const">5</span>]);
<span class="lineno" id="83">    83  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_ColorMatrix_matrix_gg"</span>,	_filter_property_get,	_filter_property_set, [ColorMatrixFilter, <span class="str_const">"matrix"</span>, <span class="str_const">"matrix"</span>, <span class="num_const">6</span>]);
<span class="lineno" id="84">    84  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_ColorMatrix_matrix_gb"</span>,	_filter_property_get,	_filter_property_set, [ColorMatrixFilter, <span class="str_const">"matrix"</span>, <span class="str_const">"matrix"</span>, <span class="num_const">7</span>]);
<span class="lineno" id="85">    85  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_ColorMatrix_matrix_ga"</span>,	_filter_property_get,	_filter_property_set, [ColorMatrixFilter, <span class="str_const">"matrix"</span>, <span class="str_const">"matrix"</span>, <span class="num_const">8</span>]);
<span class="lineno" id="86">    86  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_ColorMatrix_matrix_go"</span>,	_filter_property_get,	_filter_property_set, [ColorMatrixFilter, <span class="str_const">"matrix"</span>, <span class="str_const">"matrix"</span>, <span class="num_const">9</span>]);
<span class="lineno" id="87">    87  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_ColorMatrix_matrix_br"</span>,	_filter_property_get,	_filter_property_set, [ColorMatrixFilter, <span class="str_const">"matrix"</span>, <span class="str_const">"matrix"</span>, <span class="num_const">10</span>]);
<span class="lineno" id="88">    88  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_ColorMatrix_matrix_bg"</span>,	_filter_property_get,	_filter_property_set, [ColorMatrixFilter, <span class="str_const">"matrix"</span>, <span class="str_const">"matrix"</span>, <span class="num_const">11</span>]);
<span class="lineno" id="89">    89  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_ColorMatrix_matrix_bb"</span>,	_filter_property_get,	_filter_property_set, [ColorMatrixFilter, <span class="str_const">"matrix"</span>, <span class="str_const">"matrix"</span>, <span class="num_const">12</span>]);
<span class="lineno" id="90">    90  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_ColorMatrix_matrix_ba"</span>,	_filter_property_get,	_filter_property_set, [ColorMatrixFilter, <span class="str_const">"matrix"</span>, <span class="str_const">"matrix"</span>, <span class="num_const">13</span>]);
<span class="lineno" id="91">    91  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_ColorMatrix_matrix_bo"</span>,	_filter_property_get,	_filter_property_set, [ColorMatrixFilter, <span class="str_const">"matrix"</span>, <span class="str_const">"matrix"</span>, <span class="num_const">14</span>]);
<span class="lineno" id="92">    92  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_ColorMatrix_matrix_ar"</span>,	_filter_property_get,	_filter_property_set, [ColorMatrixFilter, <span class="str_const">"matrix"</span>, <span class="str_const">"matrix"</span>, <span class="num_const">15</span>]);
<span class="lineno" id="93">    93  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_ColorMatrix_matrix_ag"</span>,	_filter_property_get,	_filter_property_set, [ColorMatrixFilter, <span class="str_const">"matrix"</span>, <span class="str_const">"matrix"</span>, <span class="num_const">16</span>]);
<span class="lineno" id="94">    94  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_ColorMatrix_matrix_ab"</span>,	_filter_property_get,	_filter_property_set, [ColorMatrixFilter, <span class="str_const">"matrix"</span>, <span class="str_const">"matrix"</span>, <span class="num_const">17</span>]);
<span class="lineno" id="95">    95  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_ColorMatrix_matrix_aa"</span>,	_filter_property_get,	_filter_property_set, [ColorMatrixFilter, <span class="str_const">"matrix"</span>, <span class="str_const">"matrix"</span>, <span class="num_const">18</span>]);
<span class="lineno" id="96">    96  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_ColorMatrix_matrix_ao"</span>,	_filter_property_get,	_filter_property_set, [ColorMatrixFilter, <span class="str_const">"matrix"</span>, <span class="str_const">"matrix"</span>, <span class="num_const">19</span>]);
<span class="lineno" id="97">    97  </span>
<span class="lineno" id="98">    98  </span>		<span class="comment">// Shortcuts - ConvolutionFilter</span>
<span class="lineno" id="99">    99  </span>		<span class="comment">// http://livedocs.adobe.com/flex/2/langref/flash/filters/ConvolutionFilter.html</span>
<span class="lineno" id="100">   100  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Convolution_alpha"</span>,			_filter_property_get,	_filter_property_set,	[ConvolutionFilter, <span class="str_const">"alpha"</span>]);
<span class="lineno" id="101">   101  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Convolution_bias"</span>,			_filter_property_get,	_filter_property_set,	[ConvolutionFilter, <span class="str_const">"bias"</span>]);
<span class="lineno" id="102">   102  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Convolution_clamp"</span>,			_filter_property_get,	_filter_property_set,	[ConvolutionFilter, <span class="str_const">"clamp"</span>]);
<span class="lineno" id="103">   103  </span>		Tweener.registerSpecialPropertySplitter(<span class="str_const">"_Convolution_color"</span>,	_generic_color_splitter, [<span class="str_const">"_Convolution_color_r"</span>, <span class="str_const">"_Convolution_color_g"</span>, <span class="str_const">"_Convolution_color_b"</span>]);
<span class="lineno" id="104">   104  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Convolution_color_r"</span>,			_filter_property_get,	_filter_property_set,	[ConvolutionFilter, <span class="str_const">"color"</span>, <span class="str_const">"color"</span>, <span class="str_const">"r"</span>]);
<span class="lineno" id="105">   105  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Convolution_color_g"</span>,			_filter_property_get,	_filter_property_set,	[ConvolutionFilter, <span class="str_const">"color"</span>, <span class="str_const">"color"</span>, <span class="str_const">"g"</span>]);
<span class="lineno" id="106">   106  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Convolution_color_b"</span>,			_filter_property_get,	_filter_property_set,	[ConvolutionFilter, <span class="str_const">"color"</span>, <span class="str_const">"color"</span>, <span class="str_const">"b"</span>]);
<span class="lineno" id="107">   107  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Convolution_divisor"</span>,			_filter_property_get,	_filter_property_set,	[ConvolutionFilter, <span class="str_const">"divisor"</span>]);
<span class="lineno" id="108">   108  </span>		<span class="comment">//Tweener.registerSpecialPropertySplitter("_Convolution_matrix",	_generic_array_splitter, ["_Convolution_matrix_array"]);</span>
<span class="lineno" id="109">   109  </span>		<span class="comment">//Tweener.registerSpecialProperty("_Convolution_matrix_array",	_filter_property_get,	_filter_property_set,	[ConvolutionFilter, "matrix", "array"]);</span>
<span class="lineno" id="110">   110  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Convolution_matrixX"</span>,			_filter_property_get,	_filter_property_set,	[ConvolutionFilter, <span class="str_const">"matrixX"</span>]);
<span class="lineno" id="111">   111  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Convolution_matrixY"</span>,			_filter_property_get,	_filter_property_set,	[ConvolutionFilter, <span class="str_const">"matrixY"</span>]);
<span class="lineno" id="112">   112  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Convolution_preserveAlpha"</span>,	_filter_property_get,	_filter_property_set,	[ConvolutionFilter, <span class="str_const">"preserveAlpha"</span>]);
<span class="lineno" id="113">   113  </span>
<span class="lineno" id="114">   114  </span>		<span class="comment">// Shortcuts - DisplacementMapFilter</span>
<span class="lineno" id="115">   115  </span>		<span class="comment">// http://livedocs.adobe.com/flex/2/langref/flash/filters/DisplacementMapFilter.html</span>
<span class="lineno" id="116">   116  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_DisplacementMap_alpha"</span>,			_filter_property_get,	_filter_property_set, [DisplacementMapFilter, <span class="str_const">"alpha"</span>]);
<span class="lineno" id="117">   117  </span>		Tweener.registerSpecialPropertySplitter(<span class="str_const">"_DisplacementMap_color"</span>,	_generic_color_splitter, [<span class="str_const">"_DisplacementMap_color_r"</span>, <span class="str_const">"_DisplacementMap_color_r"</span>, <span class="str_const">"_DisplacementMap_color_r"</span>]);
<span class="lineno" id="118">   118  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_DisplacementMap_color_r"</span>,			_filter_property_get,	_filter_property_set, [DisplacementMapFilter, <span class="str_const">"color"</span>, <span class="str_const">"color"</span>, <span class="str_const">"r"</span>]);
<span class="lineno" id="119">   119  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_DisplacementMap_color_g"</span>,			_filter_property_get,	_filter_property_set, [DisplacementMapFilter, <span class="str_const">"color"</span>, <span class="str_const">"color"</span>, <span class="str_const">"g"</span>]);
<span class="lineno" id="120">   120  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_DisplacementMap_color_b"</span>,			_filter_property_get,	_filter_property_set, [DisplacementMapFilter, <span class="str_const">"color"</span>, <span class="str_const">"color"</span>, <span class="str_const">"b"</span>]);
<span class="lineno" id="121">   121  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_DisplacementMap_componentX"</span>,		_filter_property_get,	_filter_property_set, [DisplacementMapFilter, <span class="str_const">"componentX"</span>]);
<span class="lineno" id="122">   122  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_DisplacementMap_componentY"</span>,		_filter_property_get,	_filter_property_set, [DisplacementMapFilter, <span class="str_const">"componentY"</span>]);
<span class="lineno" id="123">   123  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_DisplacementMap_mapBitmap"</span>,		_filter_property_get,	_filter_property_set, [DisplacementMapFilter, <span class="str_const">"mapBitmap"</span>]);
<span class="lineno" id="124">   124  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_DisplacementMap_mapPoint"</span>,		_filter_property_get,	_filter_property_set, [DisplacementMapFilter, <span class="str_const">"mapPoint"</span>]);
<span class="lineno" id="125">   125  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_DisplacementMap_mode"</span>,			_filter_property_get,	_filter_property_set, [DisplacementMapFilter, <span class="str_const">"mode"</span>]);
<span class="lineno" id="126">   126  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_DisplacementMap_scaleX"</span>,			_filter_property_get,	_filter_property_set, [DisplacementMapFilter, <span class="str_const">"scaleX"</span>]);
<span class="lineno" id="127">   127  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_DisplacementMap_scaleY"</span>,			_filter_property_get,	_filter_property_set, [DisplacementMapFilter, <span class="str_const">"scaleY"</span>]);
<span class="lineno" id="128">   128  </span>
<span class="lineno" id="129">   129  </span>		<span class="comment">// Shortcuts - DropShadowFilter</span>
<span class="lineno" id="130">   130  </span>		<span class="comment">// http://livedocs.adobe.com/flex/2/langref/flash/filters/DropShadowFilter.html</span>
<span class="lineno" id="131">   131  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_DropShadow_alpha"</span>,			_filter_property_get,	_filter_property_set, [DropShadowFilter, <span class="str_const">"alpha"</span>]);
<span class="lineno" id="132">   132  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_DropShadow_angle"</span>,			_filter_property_get,	_filter_property_set, [DropShadowFilter, <span class="str_const">"angle"</span>]);
<span class="lineno" id="133">   133  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_DropShadow_blurX"</span>,			_filter_property_get,	_filter_property_set, [DropShadowFilter, <span class="str_const">"blurX"</span>]);
<span class="lineno" id="134">   134  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_DropShadow_blurY"</span>,			_filter_property_get,	_filter_property_set, [DropShadowFilter, <span class="str_const">"blurY"</span>]);
<span class="lineno" id="135">   135  </span>		Tweener.registerSpecialPropertySplitter(<span class="str_const">"_DropShadow_color"</span>,	_generic_color_splitter, [<span class="str_const">"_DropShadow_color_r"</span>, <span class="str_const">"_DropShadow_color_g"</span>, <span class="str_const">"_DropShadow_color_b"</span>]);
<span class="lineno" id="136">   136  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_DropShadow_color_r"</span>,			_filter_property_get,	_filter_property_set, [DropShadowFilter, <span class="str_const">"color"</span>, <span class="str_const">"color"</span>, <span class="str_const">"r"</span>]);
<span class="lineno" id="137">   137  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_DropShadow_color_g"</span>,			_filter_property_get,	_filter_property_set, [DropShadowFilter, <span class="str_const">"color"</span>, <span class="str_const">"color"</span>, <span class="str_const">"g"</span>]);
<span class="lineno" id="138">   138  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_DropShadow_color_b"</span>,			_filter_property_get,	_filter_property_set, [DropShadowFilter, <span class="str_const">"color"</span>, <span class="str_const">"color"</span>, <span class="str_const">"b"</span>]);
<span class="lineno" id="139">   139  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_DropShadow_distance"</span>,			_filter_property_get,	_filter_property_set, [DropShadowFilter, <span class="str_const">"distance"</span>]);
<span class="lineno" id="140">   140  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_DropShadow_hideObject"</span>,		_filter_property_get,	_filter_property_set, [DropShadowFilter, <span class="str_const">"hideObject"</span>]);
<span class="lineno" id="141">   141  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_DropShadow_inner"</span>,			_filter_property_get,	_filter_property_set, [DropShadowFilter, <span class="str_const">"inner"</span>]);
<span class="lineno" id="142">   142  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_DropShadow_knockout"</span>,			_filter_property_get,	_filter_property_set, [DropShadowFilter, <span class="str_const">"knockout"</span>]);
<span class="lineno" id="143">   143  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_DropShadow_quality"</span>,			_filter_property_get,	_filter_property_set, [DropShadowFilter, <span class="str_const">"quality"</span>]);
<span class="lineno" id="144">   144  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_DropShadow_strength"</span>,			_filter_property_get,	_filter_property_set, [DropShadowFilter, <span class="str_const">"strength"</span>]);
<span class="lineno" id="145">   145  </span>		
<span class="lineno" id="146">   146  </span>		<span class="comment">// Shortcuts - GlowFilter</span>
<span class="lineno" id="147">   147  </span>		<span class="comment">// http://livedocs.adobe.com/flex/2/langref/flash/filters/GlowFilter.html</span>
<span class="lineno" id="148">   148  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Glow_alpha"</span>,				_filter_property_get,	_filter_property_set, [GlowFilter, <span class="str_const">"alpha"</span>]);
<span class="lineno" id="149">   149  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Glow_blurX"</span>,				_filter_property_get,	_filter_property_set, [GlowFilter, <span class="str_const">"blurX"</span>]);
<span class="lineno" id="150">   150  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Glow_blurY"</span>,				_filter_property_get,	_filter_property_set, [GlowFilter, <span class="str_const">"blurY"</span>]);
<span class="lineno" id="151">   151  </span>		Tweener.registerSpecialPropertySplitter(<span class="str_const">"_Glow_color"</span>,		_generic_color_splitter, [<span class="str_const">"_Glow_color_r"</span>, <span class="str_const">"_Glow_color_g"</span>, <span class="str_const">"_Glow_color_b"</span>]);
<span class="lineno" id="152">   152  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Glow_color_r"</span>,			_filter_property_get,	_filter_property_set, [GlowFilter, <span class="str_const">"color"</span>, <span class="str_const">"color"</span>, <span class="str_const">"r"</span>]);
<span class="lineno" id="153">   153  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Glow_color_g"</span>,			_filter_property_get,	_filter_property_set, [GlowFilter, <span class="str_const">"color"</span>, <span class="str_const">"color"</span>, <span class="str_const">"g"</span>]);
<span class="lineno" id="154">   154  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Glow_color_b"</span>,			_filter_property_get,	_filter_property_set, [GlowFilter, <span class="str_const">"color"</span>, <span class="str_const">"color"</span>, <span class="str_const">"b"</span>]);
<span class="lineno" id="155">   155  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Glow_inner"</span>,				_filter_property_get,	_filter_property_set, [GlowFilter, <span class="str_const">"inner"</span>]);
<span class="lineno" id="156">   156  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Glow_knockout"</span>,			_filter_property_get,	_filter_property_set, [GlowFilter, <span class="str_const">"knockout"</span>]);
<span class="lineno" id="157">   157  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Glow_quality"</span>,			_filter_property_get,	_filter_property_set, [GlowFilter, <span class="str_const">"quality"</span>]);
<span class="lineno" id="158">   158  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_Glow_strength"</span>,			_filter_property_get,	_filter_property_set, [GlowFilter, <span class="str_const">"strength"</span>]);
<span class="lineno" id="159">   159  </span>
<span class="lineno" id="160">   160  </span>		<span class="comment">// Shortcuts - GradientBevelFilter</span>
<span class="lineno" id="161">   161  </span>		<span class="comment">// http://livedocs.adobe.com/flex/2/langref/flash/filters/GradientBevelFilter.html</span>
<span class="lineno" id="162">   162  </span>		<span class="comment">// .alphas (array)</span>
<span class="lineno" id="163">   163  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_GradientBevel_angle"</span>,		_filter_property_get,	_filter_property_set, [GradientBevelFilter, <span class="str_const">"angle"</span>]);
<span class="lineno" id="164">   164  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_GradientBevel_blurX"</span>,		_filter_property_get,	_filter_property_set, [GradientBevelFilter, <span class="str_const">"blurX"</span>]);
<span class="lineno" id="165">   165  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_GradientBevel_blurY"</span>,		_filter_property_get,	_filter_property_set, [GradientBevelFilter, <span class="str_const">"blurY"</span>]);
<span class="lineno" id="166">   166  </span>		<span class="comment">// .colors (array)</span>
<span class="lineno" id="167">   167  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_GradientBevel_distance"</span>,	_filter_property_get,	_filter_property_set, [GradientBevelFilter, <span class="str_const">"distance"</span>]);
<span class="lineno" id="168">   168  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_GradientBevel_quality"</span>,	_filter_property_get,	_filter_property_set, [GradientBevelFilter, <span class="str_const">"quality"</span>]);
<span class="lineno" id="169">   169  </span>		<span class="comment">// .ratios(array)</span>
<span class="lineno" id="170">   170  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_GradientBevel_strength"</span>,	_filter_property_get,	_filter_property_set, [GradientBevelFilter, <span class="str_const">"strength"</span>]);
<span class="lineno" id="171">   171  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_GradientBevel_type"</span>,		_filter_property_get,	_filter_property_set, [GradientBevelFilter, <span class="str_const">"type"</span>]);
<span class="lineno" id="172">   172  </span>
<span class="lineno" id="173">   173  </span>		<span class="comment">// Shortcuts - GradientGlowFilter</span>
<span class="lineno" id="174">   174  </span>		<span class="comment">// http://livedocs.adobe.com/flex/2/langref/flash/filters/GradientGlowFilter.html</span>
<span class="lineno" id="175">   175  </span>		<span class="comment">// .alphas (array)</span>
<span class="lineno" id="176">   176  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_GradientGlow_angle"</span>,		_filter_property_get,	_filter_property_set, [GradientGlowFilter, <span class="str_const">"angle"</span>]);
<span class="lineno" id="177">   177  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_GradientGlow_blurX"</span>,		_filter_property_get,	_filter_property_set, [GradientGlowFilter, <span class="str_const">"blurX"</span>]);
<span class="lineno" id="178">   178  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_GradientGlow_blurY"</span>,		_filter_property_get,	_filter_property_set, [GradientGlowFilter, <span class="str_const">"blurY"</span>]);
<span class="lineno" id="179">   179  </span>		<span class="comment">// .colors (array)</span>
<span class="lineno" id="180">   180  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_GradientGlow_distance"</span>,	_filter_property_get,	_filter_property_set, [GradientGlowFilter, <span class="str_const">"distance"</span>]);
<span class="lineno" id="181">   181  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_GradientGlow_knockout"</span>,	_filter_property_get,	_filter_property_set, [GradientGlowFilter, <span class="str_const">"knockout"</span>]);
<span class="lineno" id="182">   182  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_GradientGlow_quality"</span>,	_filter_property_get,	_filter_property_set, [GradientGlowFilter, <span class="str_const">"quality"</span>]);
<span class="lineno" id="183">   183  </span>		<span class="comment">// .ratios (array)</span>
<span class="lineno" id="184">   184  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_GradientGlow_strength"</span>,	_filter_property_get,	_filter_property_set, [GradientGlowFilter, <span class="str_const">"strength"</span>]);
<span class="lineno" id="185">   185  </span>		Tweener.registerSpecialProperty(<span class="str_const">"_GradientGlow_type"</span>,		_filter_property_get,	_filter_property_set, [GradientGlowFilter, <span class="str_const">"type"</span>]);
<span class="lineno" id="186">   186  </span>
<span class="lineno" id="187">   187  </span>	}
<span class="lineno" id="188">   188  </span>
<span class="lineno" id="189">   189  </span>
<span class="lineno" id="190">   190  </span>	<span class="comment">// ==================================================================================================================================</span>
<span class="lineno" id="191">   191  </span>	<span class="comment">// PROPERTY GROUPING/SPLITTING functions --------------------------------------------------------------------------------------------</span>
<span class="lineno" id="192">   192  </span>
<span class="lineno" id="193">   193  </span>	<span class="comment">// ----------------------------------------------------------------------------------------------------------------------------------</span>
<span class="lineno" id="194">   194  </span>	<span class="comment">// generic splitters</span>
<span class="lineno" id="195">   195  </span>
<span class="lineno" id="196">   196  </span>	<span class="comment doc">/**
<span class="lineno" id="197">   197  </span>	 * A generic color splitter - from 0xrrggbb to r, g, b with the name of the parameters passed
<span class="lineno" id="198">   198  </span>	 *
<span class="lineno" id="199">   199  </span>	 * @param		p_value				Number		The original _color value
<span class="lineno" id="200">   200  </span>	 * @return							Array		An array containing the .name and .value of all new properties
<span class="lineno" id="201">   201  </span>	 */</span>
<span class="lineno" id="202">   202  </span>	<span class="key">public</span> <span class="key">static</span> <span class="key">function</span> _generic_color_splitter (p_value:Number, p_parameters:Array):Array {
<span class="lineno" id="203">   203  </span>		<span class="key">var</span> nArray:Array = <span class="key">new</span> Array();
<span class="lineno" id="204">   204  </span>		nArray.push({name:p_parameters[<span class="num_const">0</span>], value:AuxFunctions.numberToR(p_value)});
<span class="lineno" id="205">   205  </span>		nArray.push({name:p_parameters[<span class="num_const">1</span>], value:AuxFunctions.numberToG(p_value)});
<span class="lineno" id="206">   206  </span>		nArray.push({name:p_parameters[<span class="num_const">2</span>], value:AuxFunctions.numberToB(p_value)});
<span class="lineno" id="207">   207  </span>		<span class="key">return</span> nArray;
<span class="lineno" id="208">   208  </span>	}
<span class="lineno" id="209">   209  </span>
<span class="lineno" id="210">   210  </span>	<span class="comment doc">/**
<span class="lineno" id="211">   211  </span>	 * A generic matrix splitter - from [] to items with the name of the parameters passed
<span class="lineno" id="212">   212  </span>	 *
<span class="lineno" id="213">   213  </span>	 * @param		p_value				Array		The original
<span class="lineno" id="214">   214  </span>	 * @return							Array		An array containing the .name and .value of all new properties
<span class="lineno" id="215">   215  </span>	 */</span>
<span class="lineno" id="216">   216  </span>	<span class="key">public</span> <span class="key">static</span> <span class="key">function</span> _generic_matrix_splitter (p_value:Array, p_parameters:Array):Array {
<span class="lineno" id="217">   217  </span>		<span class="key">if</span> (p_value == <span class="key">null</span>) p_value = p_parameters[<span class="num_const">0</span>].concat();
<span class="lineno" id="218">   218  </span>		<span class="key">var</span> nArray:Array = <span class="key">new</span> Array();
<span class="lineno" id="219">   219  </span>		<span class="key">for</span> (<span class="key">var</span> i:Number = <span class="num_const">0</span>; i &lt; p_value.length; i++) {
<span class="lineno" id="220">   220  </span>			nArray.push({name:p_parameters[<span class="num_const">1</span>][i], value:p_value[i]});
<span class="lineno" id="221">   221  </span>		}
<span class="lineno" id="222">   222  </span>		<span class="key">return</span> nArray;
<span class="lineno" id="223">   223  </span>	}
<span class="lineno" id="224">   224  </span>
<span class="lineno" id="225">   225  </span>	<span class="comment doc">/**
<span class="lineno" id="226">   226  </span>	 * A generic array splitter - from [] to items with the index passed back
<span class="lineno" id="227">   227  </span>	 *
<span class="lineno" id="228">   228  </span>	 * @param		p_value				Array		The original array value
<span class="lineno" id="229">   229  </span>	 * @return							Array		An array containing the .name and .value of all new properties
<span class="lineno" id="230">   230  </span>	 */</span>
<span class="lineno" id="231">   231  </span>	<span class="comment">/*
<span class="lineno" id="232">   232  </span>	public static function _generic_array_splitter (p_value:Array, p_parameters:Array):Array {
<span class="lineno" id="233">   233  </span>		if (p_value == null) p_value = p_parameters[0].concat();
<span class="lineno" id="234">   234  </span>		var nArray:Array = new Array();
<span class="lineno" id="235">   235  </span>		for (var i:Number = 0; i &lt; p_value.length; i++) {
<span class="lineno" id="236">   236  </span>			nArray.push({name:p_parameters[1][i], value:p_value[i], arrayIndex:i});
<span class="lineno" id="237">   237  </span>		}
<span class="lineno" id="238">   238  </span>		return nArray;
<span class="lineno" id="239">   239  </span>	}
<span class="lineno" id="240">   240  </span>	*/</span>
<span class="lineno" id="241">   241  </span>
<span class="lineno" id="242">   242  </span>	<span class="comment">// ----------------------------------------------------------------------------------------------------------------------------------</span>
<span class="lineno" id="243">   243  </span>	<span class="comment">// filters</span>
<span class="lineno" id="244">   244  </span>
<span class="lineno" id="245">   245  </span>	<span class="comment doc">/**
<span class="lineno" id="246">   246  </span>	 * Splits the _filter, _blur, etc parameter into specific filter variables
<span class="lineno" id="247">   247  </span>	 *
<span class="lineno" id="248">   248  </span>	 * @param		p_value				BitmapFilter	A BitmapFilter instance
<span class="lineno" id="249">   249  </span>	 * @return							Array			An array containing the .name and .value of all new properties
<span class="lineno" id="250">   250  </span>	 */</span>
<span class="lineno" id="251">   251  </span>	<span class="key">public</span> <span class="key">static</span> <span class="key">function</span> _filter_splitter (p_value:BitmapFilter):Array {
<span class="lineno" id="252">   252  </span>		<span class="key">var</span> nArray:Array = <span class="key">new</span> Array();
<span class="lineno" id="253">   253  </span>		<span class="key">if</span> (p_value <span class="key">instanceof</span> BevelFilter) {
<span class="lineno" id="254">   254  </span>			nArray.push({name:<span class="str_const">"_Bevel_angle"</span>,					value:BevelFilter(p_value).angle});
<span class="lineno" id="255">   255  </span>			nArray.push({name:<span class="str_const">"_Bevel_blurX"</span>,					value:BevelFilter(p_value).blurX});
<span class="lineno" id="256">   256  </span>			nArray.push({name:<span class="str_const">"_Bevel_blurY"</span>,					value:BevelFilter(p_value).blurY});
<span class="lineno" id="257">   257  </span>			nArray.push({name:<span class="str_const">"_Bevel_distance"</span>,				value:BevelFilter(p_value).distance});
<span class="lineno" id="258">   258  </span>			nArray.push({name:<span class="str_const">"_Bevel_highlightAlpha"</span>,			value:BevelFilter(p_value).highlightAlpha});
<span class="lineno" id="259">   259  </span>			nArray.push({name:<span class="str_const">"_Bevel_highlightColor"</span>,			value:BevelFilter(p_value).highlightColor});
<span class="lineno" id="260">   260  </span>			nArray.push({name:<span class="str_const">"_Bevel_knockout"</span>,				value:BevelFilter(p_value).knockout});
<span class="lineno" id="261">   261  </span>			nArray.push({name:<span class="str_const">"_Bevel_quality"</span>,					value:BevelFilter(p_value).quality});
<span class="lineno" id="262">   262  </span>			nArray.push({name:<span class="str_const">"_Bevel_shadowAlpha"</span>,				value:BevelFilter(p_value).shadowAlpha});
<span class="lineno" id="263">   263  </span>			nArray.push({name:<span class="str_const">"_Bevel_shadowColor"</span>,				value:BevelFilter(p_value).shadowColor});
<span class="lineno" id="264">   264  </span>			nArray.push({name:<span class="str_const">"_Bevel_strength"</span>,				value:BevelFilter(p_value).strength});
<span class="lineno" id="265">   265  </span>			nArray.push({name:<span class="str_const">"_Bevel_type"</span>,					value:BevelFilter(p_value).type});
<span class="lineno" id="266">   266  </span>		} <span class="key">else</span> <span class="key">if</span> (p_value <span class="key">instanceof</span> BlurFilter) {
<span class="lineno" id="267">   267  </span>			nArray.push({name:<span class="str_const">"_Blur_blurX"</span>,					value:BlurFilter(p_value).blurX});
<span class="lineno" id="268">   268  </span>			nArray.push({name:<span class="str_const">"_Blur_blurY"</span>,					value:BlurFilter(p_value).blurY});
<span class="lineno" id="269">   269  </span>			nArray.push({name:<span class="str_const">"_Blur_quality"</span>,					value:BlurFilter(p_value).quality});
<span class="lineno" id="270">   270  </span>		} <span class="key">else</span> <span class="key">if</span> (p_value <span class="key">instanceof</span> ColorMatrixFilter) {
<span class="lineno" id="271">   271  </span>			nArray.push({name:<span class="str_const">"_ColorMatrix_matrix"</span>,			value:ColorMatrixFilter(p_value).matrix});
<span class="lineno" id="272">   272  </span>		} <span class="key">else</span> <span class="key">if</span> (p_value <span class="key">instanceof</span> ConvolutionFilter) {
<span class="lineno" id="273">   273  </span>			nArray.push({name:<span class="str_const">"_Convolution_alpha"</span>,				value:ConvolutionFilter(p_value).alpha});
<span class="lineno" id="274">   274  </span>			nArray.push({name:<span class="str_const">"_Convolution_bias"</span>,				value:ConvolutionFilter(p_value).bias});
<span class="lineno" id="275">   275  </span>			nArray.push({name:<span class="str_const">"_Convolution_clamp"</span>,				value:ConvolutionFilter(p_value).clamp});
<span class="lineno" id="276">   276  </span>			nArray.push({name:<span class="str_const">"_Convolution_color"</span>,				value:ConvolutionFilter(p_value).color});
<span class="lineno" id="277">   277  </span>			<span class="comment">// .matrix</span>
<span class="lineno" id="278">   278  </span>			nArray.push({name:<span class="str_const">"_Convolution_divisor"</span>,			value:ConvolutionFilter(p_value).divisor});
<span class="lineno" id="279">   279  </span>			nArray.push({name:<span class="str_const">"_Convolution_matrixX"</span>,			value:ConvolutionFilter(p_value).matrixX});
<span class="lineno" id="280">   280  </span>			nArray.push({name:<span class="str_const">"_Convolution_matrixY"</span>,			value:ConvolutionFilter(p_value).matrixY});
<span class="lineno" id="281">   281  </span>			nArray.push({name:<span class="str_const">"_Convolution_preserveAlpha"</span>,		value:ConvolutionFilter(p_value).preserveAlpha});
<span class="lineno" id="282">   282  </span>		} <span class="key">else</span> <span class="key">if</span> (p_value <span class="key">instanceof</span> DisplacementMapFilter) {
<span class="lineno" id="283">   283  </span>			nArray.push({name:<span class="str_const">"_DisplacementMap_alpha"</span>,			value:DisplacementMapFilter(p_value).alpha});
<span class="lineno" id="284">   284  </span>			nArray.push({name:<span class="str_const">"_DisplacementMap_color"</span>,			value:DisplacementMapFilter(p_value).color});
<span class="lineno" id="285">   285  </span>			nArray.push({name:<span class="str_const">"_DisplacementMap_componentX"</span>,	value:DisplacementMapFilter(p_value).componentX});
<span class="lineno" id="286">   286  </span>			nArray.push({name:<span class="str_const">"_DisplacementMap_componentY"</span>,	value:DisplacementMapFilter(p_value).componentY});
<span class="lineno" id="287">   287  </span>			nArray.push({name:<span class="str_const">"_DisplacementMap_mapBitmap"</span>,		value:DisplacementMapFilter(p_value).mapBitmap});
<span class="lineno" id="288">   288  </span>			nArray.push({name:<span class="str_const">"_DisplacementMap_mapPoint"</span>,		value:DisplacementMapFilter(p_value).mapPoint});
<span class="lineno" id="289">   289  </span>			nArray.push({name:<span class="str_const">"_DisplacementMap_mode"</span>,			value:DisplacementMapFilter(p_value).mode});
<span class="lineno" id="290">   290  </span>			nArray.push({name:<span class="str_const">"_DisplacementMap_scaleX"</span>,		value:DisplacementMapFilter(p_value).scaleX});
<span class="lineno" id="291">   291  </span>			nArray.push({name:<span class="str_const">"_DisplacementMap_scaleY"</span>,		value:DisplacementMapFilter(p_value).scaleY});
<span class="lineno" id="292">   292  </span>		} <span class="key">else</span> <span class="key">if</span> (p_value <span class="key">instanceof</span> DropShadowFilter) {
<span class="lineno" id="293">   293  </span>			nArray.push({name:<span class="str_const">"_DropShadow_alpha"</span>,				value:DropShadowFilter(p_value).alpha});
<span class="lineno" id="294">   294  </span>			nArray.push({name:<span class="str_const">"_DropShadow_angle"</span>,				value:DropShadowFilter(p_value).angle});
<span class="lineno" id="295">   295  </span>			nArray.push({name:<span class="str_const">"_DropShadow_blurX"</span>,				value:DropShadowFilter(p_value).blurX});
<span class="lineno" id="296">   296  </span>			nArray.push({name:<span class="str_const">"_DropShadow_blurY"</span>,				value:DropShadowFilter(p_value).blurY});
<span class="lineno" id="297">   297  </span>			nArray.push({name:<span class="str_const">"_DropShadow_color"</span>,				value:DropShadowFilter(p_value).color});
<span class="lineno" id="298">   298  </span>			nArray.push({name:<span class="str_const">"_DropShadow_distance"</span>,			value:DropShadowFilter(p_value).distance});
<span class="lineno" id="299">   299  </span>			nArray.push({name:<span class="str_const">"_DropShadow_hideObject"</span>,			value:DropShadowFilter(p_value).hideObject});
<span class="lineno" id="300">   300  </span>			nArray.push({name:<span class="str_const">"_DropShadow_inner"</span>,				value:DropShadowFilter(p_value).inner});
<span class="lineno" id="301">   301  </span>			nArray.push({name:<span class="str_const">"_DropShadow_knockout"</span>,			value:DropShadowFilter(p_value).knockout});
<span class="lineno" id="302">   302  </span>			nArray.push({name:<span class="str_const">"_DropShadow_quality"</span>,			value:DropShadowFilter(p_value).quality});
<span class="lineno" id="303">   303  </span>			nArray.push({name:<span class="str_const">"_DropShadow_strength"</span>,			value:DropShadowFilter(p_value).strength});
<span class="lineno" id="304">   304  </span>		} <span class="key">else</span> <span class="key">if</span> (p_value <span class="key">instanceof</span> GlowFilter) {
<span class="lineno" id="305">   305  </span>			nArray.push({name:<span class="str_const">"_Glow_alpha"</span>,					value:GlowFilter(p_value).alpha});
<span class="lineno" id="306">   306  </span>			nArray.push({name:<span class="str_const">"_Glow_blurX"</span>,					value:GlowFilter(p_value).blurX});
<span class="lineno" id="307">   307  </span>			nArray.push({name:<span class="str_const">"_Glow_blurY"</span>,					value:GlowFilter(p_value).blurY});
<span class="lineno" id="308">   308  </span>			nArray.push({name:<span class="str_const">"_Glow_color"</span>,					value:GlowFilter(p_value).color});
<span class="lineno" id="309">   309  </span>			nArray.push({name:<span class="str_const">"_Glow_inner"</span>,					value:GlowFilter(p_value).inner});
<span class="lineno" id="310">   310  </span>			nArray.push({name:<span class="str_const">"_Glow_knockout"</span>,					value:GlowFilter(p_value).knockout});
<span class="lineno" id="311">   311  </span>			nArray.push({name:<span class="str_const">"_Glow_quality"</span>,					value:GlowFilter(p_value).quality});
<span class="lineno" id="312">   312  </span>			nArray.push({name:<span class="str_const">"_Glow_strength"</span>,					value:GlowFilter(p_value).strength});
<span class="lineno" id="313">   313  </span>		} <span class="key">else</span> <span class="key">if</span> (p_value <span class="key">instanceof</span> GradientBevelFilter) {
<span class="lineno" id="314">   314  </span>			<span class="comment">// .alphas (array)</span>
<span class="lineno" id="315">   315  </span>			nArray.push({name:<span class="str_const">"_GradientBevel_angle"</span>,			value:GradientBevelFilter(p_value).strength});
<span class="lineno" id="316">   316  </span>			nArray.push({name:<span class="str_const">"_GradientBevel_blurX"</span>,			value:GradientBevelFilter(p_value).blurX});
<span class="lineno" id="317">   317  </span>			nArray.push({name:<span class="str_const">"_GradientBevel_blurY"</span>,			value:GradientBevelFilter(p_value).blurY});
<span class="lineno" id="318">   318  </span>			<span class="comment">// .colors (array)</span>
<span class="lineno" id="319">   319  </span>			nArray.push({name:<span class="str_const">"_GradientBevel_distance"</span>,		value:GradientBevelFilter(p_value).distance});
<span class="lineno" id="320">   320  </span>			nArray.push({name:<span class="str_const">"_GradientBevel_quality"</span>,			value:GradientBevelFilter(p_value).quality});
<span class="lineno" id="321">   321  </span>			<span class="comment">// .ratios(array)</span>
<span class="lineno" id="322">   322  </span>			nArray.push({name:<span class="str_const">"_GradientBevel_strength"</span>,		value:GradientBevelFilter(p_value).strength});
<span class="lineno" id="323">   323  </span>			nArray.push({name:<span class="str_const">"_GradientBevel_type"</span>,			value:GradientBevelFilter(p_value).type});
<span class="lineno" id="324">   324  </span>		} <span class="key">else</span> <span class="key">if</span> (p_value <span class="key">instanceof</span> GradientGlowFilter) {
<span class="lineno" id="325">   325  </span>			<span class="comment">// .alphas (array)</span>
<span class="lineno" id="326">   326  </span>			nArray.push({name:<span class="str_const">"_GradientGlow_angle"</span>,			value:GradientGlowFilter(p_value).strength});
<span class="lineno" id="327">   327  </span>			nArray.push({name:<span class="str_const">"_GradientGlow_blurX"</span>,			value:GradientGlowFilter(p_value).blurX});
<span class="lineno" id="328">   328  </span>			nArray.push({name:<span class="str_const">"_GradientGlow_blurY"</span>,			value:GradientGlowFilter(p_value).blurY});
<span class="lineno" id="329">   329  </span>			<span class="comment">// .colors (array)</span>
<span class="lineno" id="330">   330  </span>			nArray.push({name:<span class="str_const">"_GradientGlow_distance"</span>,			value:GradientGlowFilter(p_value).distance});
<span class="lineno" id="331">   331  </span>			nArray.push({name:<span class="str_const">"_GradientGlow_knockout"</span>,			value:GradientGlowFilter(p_value).knockout});
<span class="lineno" id="332">   332  </span>			nArray.push({name:<span class="str_const">"_GradientGlow_quality"</span>,			value:GradientGlowFilter(p_value).quality});
<span class="lineno" id="333">   333  </span>			<span class="comment">// .ratios(array)</span>
<span class="lineno" id="334">   334  </span>			nArray.push({name:<span class="str_const">"_GradientGlow_strength"</span>,			value:GradientGlowFilter(p_value).strength});
<span class="lineno" id="335">   335  </span>			nArray.push({name:<span class="str_const">"_GradientGlow_type"</span>,				value:GradientGlowFilter(p_value).type});
<span class="lineno" id="336">   336  </span>		} <span class="key">else</span> {
<span class="lineno" id="337">   337  </span>			<span class="comment">// ?</span>
<span class="lineno" id="338">   338  </span>			trace (<span class="str_const">"Tweener FilterShortcuts Error :: Unknown filter class used"</span>);
<span class="lineno" id="339">   339  </span>		}
<span class="lineno" id="340">   340  </span>		<span class="key">return</span> nArray;
<span class="lineno" id="341">   341  </span>	}
<span class="lineno" id="342">   342  </span>
<span class="lineno" id="343">   343  </span>
<span class="lineno" id="344">   344  </span>	<span class="comment">// ==================================================================================================================================</span>
<span class="lineno" id="345">   345  </span>	<span class="comment">// NORMAL SPECIAL PROPERTY functions ------------------------------------------------------------------------------------------------</span>
<span class="lineno" id="346">   346  </span>
<span class="lineno" id="347">   347  </span>	<span class="comment">// ----------------------------------------------------------------------------------------------------------------------------------</span>
<span class="lineno" id="348">   348  </span>	<span class="comment">// filters</span>
<span class="lineno" id="349">   349  </span>
<span class="lineno" id="350">   350  </span>	<span class="comment doc">/**
<span class="lineno" id="351">   351  </span>	 * (filters)
<span class="lineno" id="352">   352  </span>	 * Generic function for the properties of filter objects
<span class="lineno" id="353">   353  </span>	 */</span>
<span class="lineno" id="354">   354  </span>	<span class="key">public</span> <span class="key">static</span> <span class="key">function</span> _filter_property_get (p_obj:Object, p_parameters:Array):Number {
<span class="lineno" id="355">   355  </span>		<span class="key">var</span> f:Array = p_obj.filters;
<span class="lineno" id="356">   356  </span>		<span class="key">var</span> i:Number;
<span class="lineno" id="357">   357  </span>		<span class="key">var</span> filterClass:Object = p_parameters[<span class="num_const">0</span>];
<span class="lineno" id="358">   358  </span>		<span class="key">var</span> propertyName:String = p_parameters[<span class="num_const">1</span>];
<span class="lineno" id="359">   359  </span>		<span class="key">var</span> splitType:String = p_parameters[<span class="num_const">2</span>];
<span class="lineno" id="360">   360  </span>		<span class="key">for</span> (i = <span class="num_const">0</span>; i &lt; f.length; i++) {
<span class="lineno" id="361">   361  </span>			<span class="key">if</span> (f[i] <span class="key">instanceof</span> filterClass) {
<span class="lineno" id="362">   362  </span>				<span class="key">if</span> (splitType == <span class="str_const">"color"</span>) {
<span class="lineno" id="363">   363  </span>					<span class="comment">// Composite, color channel</span>
<span class="lineno" id="364">   364  </span>					<span class="key">var</span> colorComponent:String = p_parameters[<span class="num_const">3</span>];
<span class="lineno" id="365">   365  </span>					<span class="key">if</span> (colorComponent == <span class="str_const">"r"</span>) <span class="key">return</span> AuxFunctions.numberToR(f[i][propertyName]);
<span class="lineno" id="366">   366  </span>					<span class="key">if</span> (colorComponent == <span class="str_const">"g"</span>) <span class="key">return</span> AuxFunctions.numberToG(f[i][propertyName]);
<span class="lineno" id="367">   367  </span>					<span class="key">if</span> (colorComponent == <span class="str_const">"b"</span>) <span class="key">return</span> AuxFunctions.numberToB(f[i][propertyName]);
<span class="lineno" id="368">   368  </span>				} <span class="key">else</span> <span class="key">if</span> (splitType == <span class="str_const">"matrix"</span>) {
<span class="lineno" id="369">   369  </span>					<span class="comment">// Composite, some kind of matrix</span>
<span class="lineno" id="370">   370  </span>					<span class="key">return</span> f[i][propertyName][p_parameters[<span class="num_const">3</span>]];
<span class="lineno" id="371">   371  </span>				} <span class="key">else</span> {
<span class="lineno" id="372">   372  </span>					<span class="comment">// Standard property</span>
<span class="lineno" id="373">   373  </span>					<span class="key">return</span> (f[i][propertyName]);
<span class="lineno" id="374">   374  </span>				}
<span class="lineno" id="375">   375  </span>			}
<span class="lineno" id="376">   376  </span>		}
<span class="lineno" id="377">   377  </span>
<span class="lineno" id="378">   378  </span>		<span class="comment">// No value found for this property - no filter instance found using this class!</span>
<span class="lineno" id="379">   379  </span>		<span class="comment">// Must return default desired values</span>
<span class="lineno" id="380">   380  </span>		<span class="key">var</span> defaultValues:Object;
<span class="lineno" id="381">   381  </span>		<span class="key">switch</span> (filterClass) {
<span class="lineno" id="382">   382  </span>			<span class="key">case</span> BevelFilter:
<span class="lineno" id="383">   383  </span>				defaultValues = {angle:NaN, blurX:<span class="num_const">0</span>, blurY:<span class="num_const">0</span>, distance:<span class="num_const">0</span>, highlightAlpha:<span class="num_const">1</span>, highlightColor:NaN, knockout:<span class="key">null</span>, quality:NaN, shadowAlpha:<span class="num_const">1</span>, shadowColor:NaN, strength:<span class="num_const">2</span>, type:<span class="key">null</span>};
<span class="lineno" id="384">   384  </span>				<span class="key">break</span>;
<span class="lineno" id="385">   385  </span>			<span class="key">case</span> BlurFilter:
<span class="lineno" id="386">   386  </span>				defaultValues = {blurX:<span class="num_const">0</span>, blurY:<span class="num_const">0</span>, quality:NaN};
<span class="lineno" id="387">   387  </span>				<span class="key">break</span>;
<span class="lineno" id="388">   388  </span>			<span class="key">case</span> ColorMatrixFilter:
<span class="lineno" id="389">   389  </span>				defaultValues = {matrix:[<span class="num_const">1</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">1</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">1</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">1</span>, <span class="num_const">0</span>]};
<span class="lineno" id="390">   390  </span>				<span class="key">break</span>;
<span class="lineno" id="391">   391  </span>			<span class="key">case</span> ConvolutionFilter:
<span class="lineno" id="392">   392  </span>				defaultValues = {alpha:<span class="num_const">0</span>, bias:<span class="num_const">0</span>, clamp:<span class="key">null</span>, color:NaN, divisor:<span class="num_const">1</span>, matrix:[<span class="num_const">1</span>], matrixX:<span class="num_const">1</span>, matrixY:<span class="num_const">1</span>, preserveAlpha:<span class="key">null</span>};
<span class="lineno" id="393">   393  </span>				<span class="key">break</span>;
<span class="lineno" id="394">   394  </span>			<span class="key">case</span> DisplacementMapFilter:
<span class="lineno" id="395">   395  </span>				defaultValues = {alpha:<span class="num_const">0</span>, color:NaN, componentX:<span class="key">null</span>, componentY:<span class="key">null</span>, mapBitmap:<span class="key">null</span>, mapPoint:<span class="key">null</span>, mode:<span class="key">null</span>, scaleX:<span class="num_const">0</span>, scaleY:<span class="num_const">0</span>};
<span class="lineno" id="396">   396  </span>				<span class="key">break</span>;
<span class="lineno" id="397">   397  </span>			<span class="key">case</span> DropShadowFilter:
<span class="lineno" id="398">   398  </span>				defaultValues = {distance:<span class="num_const">0</span>, angle:NaN, color:NaN, alpha:<span class="num_const">1</span>, blurX:<span class="num_const">0</span>, blurY:<span class="num_const">0</span>, strength:<span class="num_const">1</span>, quality:NaN, inner:<span class="key">null</span>, knockout:<span class="key">null</span>, hideObject:<span class="key">null</span>};
<span class="lineno" id="399">   399  </span>				<span class="key">break</span>;
<span class="lineno" id="400">   400  </span>			<span class="key">case</span> GlowFilter:
<span class="lineno" id="401">   401  </span>				defaultValues = {alpha:<span class="num_const">1</span>, blurX:<span class="num_const">0</span>, blurY:<span class="num_const">0</span>, color:NaN, inner:<span class="key">null</span>, knockout:<span class="key">null</span>, quality:NaN, strength:<span class="num_const">2</span>};
<span class="lineno" id="402">   402  </span>				<span class="key">break</span>;
<span class="lineno" id="403">   403  </span>			<span class="key">case</span> GradientBevelFilter:
<span class="lineno" id="404">   404  </span>				defaultValues = {alphas:<span class="key">null</span>, angle:NaN, blurX:<span class="num_const">0</span>, blurY:<span class="num_const">0</span>, colors:<span class="key">null</span>, distance:<span class="num_const">0</span>, knockout:<span class="key">null</span>, quality:NaN, ratios:NaN, strength:<span class="num_const">1</span>, type:<span class="key">null</span>};
<span class="lineno" id="405">   405  </span>				<span class="key">break</span>;
<span class="lineno" id="406">   406  </span>			<span class="key">case</span> GradientGlowFilter:
<span class="lineno" id="407">   407  </span>				defaultValues = {alphas:<span class="key">null</span>, angle:NaN, blurX:<span class="num_const">0</span>, blurY:<span class="num_const">0</span>, colors:<span class="key">null</span>, distance:<span class="num_const">0</span>, knockout:<span class="key">null</span>, quality:NaN, ratios:NaN, strength:<span class="num_const">1</span>, type:<span class="key">null</span>};
<span class="lineno" id="408">   408  </span>				<span class="key">break</span>;
<span class="lineno" id="409">   409  </span>		}
<span class="lineno" id="410">   410  </span>		<span class="comment">// When returning NaN, the Tweener engine sets the starting value as being the same as the final value (if not found)</span>
<span class="lineno" id="411">   411  </span>		<span class="comment">// When returning null, the Tweener engine doesn't tween it at all, just setting it to the final value</span>
<span class="lineno" id="412">   412  </span>		<span class="comment">// This is DIFFERENT from the default filter applied as default on _filter_property_set because some values shouldn't be tweened</span>
<span class="lineno" id="413">   413  </span>		<span class="key">if</span> (splitType == <span class="str_const">"color"</span>) {
<span class="lineno" id="414">   414  </span>			<span class="comment">// Composite, color channel; always defaults to target value</span>
<span class="lineno" id="415">   415  </span>			<span class="key">return</span> NaN;
<span class="lineno" id="416">   416  </span>		} <span class="key">else</span> <span class="key">if</span> (splitType == <span class="str_const">"matrix"</span>) {
<span class="lineno" id="417">   417  </span>			<span class="comment">// Composite, matrix; always defaults to target value</span>
<span class="lineno" id="418">   418  </span>			<span class="key">return</span> defaultValues[propertyName][p_parameters[<span class="num_const">3</span>]];
<span class="lineno" id="419">   419  </span>		} <span class="key">else</span> {
<span class="lineno" id="420">   420  </span>			<span class="comment">// Standard property</span>
<span class="lineno" id="421">   421  </span>			<span class="key">return</span> defaultValues[propertyName];
<span class="lineno" id="422">   422  </span>		}
<span class="lineno" id="423">   423  </span>	}
<span class="lineno" id="424">   424  </span>
<span class="lineno" id="425">   425  </span>	<span class="key">public</span> <span class="key">static</span> <span class="key">function</span> _filter_property_set (p_obj:Object, p_value:Number, p_parameters:Array):Void {
<span class="lineno" id="426">   426  </span>		<span class="key">var</span> f:Array = p_obj.filters;
<span class="lineno" id="427">   427  </span>		<span class="key">var</span> i:Number;
<span class="lineno" id="428">   428  </span>		<span class="key">var</span> filterClass:Object = p_parameters[<span class="num_const">0</span>];
<span class="lineno" id="429">   429  </span>		<span class="key">var</span> propertyName:String = p_parameters[<span class="num_const">1</span>];
<span class="lineno" id="430">   430  </span>		<span class="key">var</span> splitType:String = p_parameters[<span class="num_const">2</span>];
<span class="lineno" id="431">   431  </span>		<span class="key">for</span> (i = <span class="num_const">0</span>; i &lt; f.length; i++) {
<span class="lineno" id="432">   432  </span>			<span class="key">if</span> (f[i] <span class="key">instanceof</span> filterClass) {
<span class="lineno" id="433">   433  </span>				<span class="key">if</span> (splitType == <span class="str_const">"color"</span>) {
<span class="lineno" id="434">   434  </span>					<span class="comment">// Composite, color channel</span>
<span class="lineno" id="435">   435  </span>					<span class="key">var</span> colorComponent:String = p_parameters[<span class="num_const">3</span>];
<span class="lineno" id="436">   436  </span>					<span class="key">if</span> (colorComponent == <span class="str_const">"r"</span>) f[i][propertyName] = (f[i][propertyName] &amp; 0xffff) | (p_value &lt;&lt; <span class="num_const">16</span>);
<span class="lineno" id="437">   437  </span>					<span class="key">if</span> (colorComponent == <span class="str_const">"g"</span>) f[i][propertyName] = (f[i][propertyName] &amp; 0xff00ff) | (p_value &lt;&lt; <span class="num_const">8</span>);
<span class="lineno" id="438">   438  </span>					<span class="key">if</span> (colorComponent == <span class="str_const">"b"</span>) f[i][propertyName] = (f[i][propertyName] &amp; 0xffff00) | p_value;
<span class="lineno" id="439">   439  </span>				} <span class="key">else</span> <span class="key">if</span> (splitType == <span class="str_const">"matrix"</span>) {
<span class="lineno" id="440">   440  </span>					<span class="key">var</span> mtx:Array = f[i][propertyName];
<span class="lineno" id="441">   441  </span>					mtx[p_parameters[<span class="num_const">3</span>]] = p_value;
<span class="lineno" id="442">   442  </span>					f[i][propertyName] = mtx;
<span class="lineno" id="443">   443  </span>				} <span class="key">else</span> {
<span class="lineno" id="444">   444  </span>					<span class="comment">// Standard property</span>
<span class="lineno" id="445">   445  </span>					f[i][propertyName] = p_value;
<span class="lineno" id="446">   446  </span>				}
<span class="lineno" id="447">   447  </span>				p_obj.filters = f;
<span class="lineno" id="448">   448  </span>				<span class="key">return</span>;
<span class="lineno" id="449">   449  </span>			}
<span class="lineno" id="450">   450  </span>		}
<span class="lineno" id="451">   451  </span>
<span class="lineno" id="452">   452  </span>		<span class="comment">// The correct filter class wasn't found, so create a new one that is the equivalent of the object without the filter</span>
<span class="lineno" id="453">   453  </span>		<span class="key">if</span> (f == undefined) f = <span class="key">new</span> Array();
<span class="lineno" id="454">   454  </span>		<span class="key">var</span> fi:BitmapFilter;
<span class="lineno" id="455">   455  </span>		<span class="key">switch</span> (filterClass) {
<span class="lineno" id="456">   456  </span>			<span class="key">case</span> BevelFilter:
<span class="lineno" id="457">   457  </span>				fi = <span class="key">new</span> BevelFilter(<span class="num_const">0</span>, <span class="num_const">45</span>, 0xffffff, <span class="num_const">1</span>, 0x000000, <span class="num_const">1</span>, <span class="num_const">0</span>, <span class="num_const">0</span>);
<span class="lineno" id="458">   458  </span>				<span class="key">break</span>;
<span class="lineno" id="459">   459  </span>			<span class="key">case</span> BlurFilter:
<span class="lineno" id="460">   460  </span>				fi = <span class="key">new</span> BlurFilter(<span class="num_const">0</span>, <span class="num_const">0</span>);
<span class="lineno" id="461">   461  </span>				<span class="key">break</span>;
<span class="lineno" id="462">   462  </span>			<span class="key">case</span> ColorMatrixFilter:
<span class="lineno" id="463">   463  </span>				fi = <span class="key">new</span> ColorMatrixFilter([<span class="num_const">1</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">1</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">1</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">0</span>, <span class="num_const">1</span>, <span class="num_const">0</span>]);
<span class="lineno" id="464">   464  </span>				<span class="key">break</span>;
<span class="lineno" id="465">   465  </span>			<span class="key">case</span> ConvolutionFilter:
<span class="lineno" id="466">   466  </span>				fi = <span class="key">new</span> ConvolutionFilter(<span class="num_const">1</span>, <span class="num_const">1</span>, [<span class="num_const">1</span>], <span class="num_const">1</span>, <span class="num_const">0</span>, <span class="key">true</span>, <span class="key">true</span>, 0x000000, <span class="num_const">0</span>);
<span class="lineno" id="467">   467  </span>				<span class="key">break</span>;
<span class="lineno" id="468">   468  </span>			<span class="key">case</span> DisplacementMapFilter:
<span class="lineno" id="469">   469  </span>				<span class="comment">// Doesn't make much sense to create a new empty DisplacementMapFilter if there's nothing to tween</span>
<span class="lineno" id="470">   470  </span>				fi = <span class="key">new</span> DisplacementMapFilter(<span class="key">new</span> BitmapData(<span class="num_const">10</span>, <span class="num_const">10</span>), <span class="key">new</span> Point(<span class="num_const">0</span>, <span class="num_const">0</span>), <span class="num_const">0</span>, <span class="num_const">1</span>, <span class="num_const">0</span>, <span class="num_const">0</span>);
<span class="lineno" id="471">   471  </span>				<span class="key">break</span>;
<span class="lineno" id="472">   472  </span>			<span class="key">case</span> DropShadowFilter:
<span class="lineno" id="473">   473  </span>				fi = <span class="key">new</span> DropShadowFilter(<span class="num_const">0</span>, <span class="num_const">45</span>, 0x000000, <span class="num_const">1</span>, <span class="num_const">0</span>, <span class="num_const">0</span>);
<span class="lineno" id="474">   474  </span>				<span class="key">break</span>;
<span class="lineno" id="475">   475  </span>			<span class="key">case</span> GlowFilter:
<span class="lineno" id="476">   476  </span>				fi = <span class="key">new</span> GlowFilter(0xff0000, <span class="num_const">1</span>, <span class="num_const">0</span>, <span class="num_const">0</span>);
<span class="lineno" id="477">   477  </span>				<span class="key">break</span>;
<span class="lineno" id="478">   478  </span>			<span class="key">case</span> GradientBevelFilter:
<span class="lineno" id="479">   479  </span>				fi = <span class="key">new</span> GradientBevelFilter(<span class="num_const">0</span>, <span class="num_const">45</span>, [0xffffff, 0x000000], [<span class="num_const">1</span>, <span class="num_const">1</span>], [<span class="num_const">32</span>, <span class="num_const">223</span>], <span class="num_const">0</span>, <span class="num_const">0</span>);
<span class="lineno" id="480">   480  </span>				<span class="key">break</span>;
<span class="lineno" id="481">   481  </span>			<span class="key">case</span> GradientGlowFilter:
<span class="lineno" id="482">   482  </span>				fi = <span class="key">new</span> GradientGlowFilter(<span class="num_const">0</span>, <span class="num_const">45</span>, [0xffffff, 0x000000], [<span class="num_const">1</span>, <span class="num_const">1</span>], [<span class="num_const">32</span>, <span class="num_const">223</span>], <span class="num_const">0</span>, <span class="num_const">0</span>);
<span class="lineno" id="483">   483  </span>				<span class="key">break</span>;
<span class="lineno" id="484">   484  </span>		}
<span class="lineno" id="485">   485  </span>		<span class="comment">//fi[propertyName] = p_value;</span>
<span class="lineno" id="486">   486  </span>		f.push(fi);
<span class="lineno" id="487">   487  </span>		p_obj.filters = f;
<span class="lineno" id="488">   488  </span>		_filter_property_set(p_obj, p_value, p_parameters);
<span class="lineno" id="489">   489  </span>	}
<span class="lineno" id="490">   490  </span>
<span class="lineno" id="491">   491  </span>}
<span class="lineno" id="492">   492  </span></pre><ul class="main_nav" id="main_nav"><li><a href="../../../overview-summary.html" title="Overview of SASAPI" class="button">Overview</a></li><li><a href="package-summary.html" title="Overview of package caurina.transitions.properties" class="button">Package</a></li><li><a href="FilterShortcuts.html" title="Detail of caurina.transitions.properties.FilterShortcuts API" class="button">Class</a></li><li><span class="button nav_current">Source</span></li><li><a href="../../../index-files/index.html" title="Alpabetical index of types and members" class="button">Index</a></li></ul><div class="footer"><a href="http://www.badgers-in-foil.co.uk/projects/as2api/" title="ActionScript 2 API Documentation Generator">as2api</a></div></body></html>